package com.jxk.consumer.fein;

import com.jxk.common.entity.User;
import com.jxk.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "auth-service")
public interface AuthRemoteClient {
    /**
     * 调用认证, 获取 token
     *
     * @param user
     * @return
     */
    @PostMapping("/user/login")
    Result login(@RequestBody User user);
}